import * as API from './index'

export const addCategory = (params)=>{
    return API.POST('/api/v1/admin/product_categories',params)
}
export const categoryList = (params)=>{
    return API.GET('/api/v1/admin/product_categories',params)
}
export const categoryDelete = (params)=>{
    return API.DELETE('/api/v1/admin/product_categories/'+params)
}
export const categoryUpdated = (params)=>{
    return API.PUT('/api/v1/admin/product_categories/'+params.id,params)
}